<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>hello</title>
</head>
<body>
    {% if name %}
        <h1>Hello {{ name }}!</h1>
    {% endif %}

    {% if marks %}
        {% if marks > 50 %}
            <h2>Your result is pass!</h2>
        {% else %}
            <h2>Your result is fail</h2>
        {% endif %}
    {% endif %}

    {% if result %}
        <table border="1">
            {% for key, value in result.items() %}
                <tr>
                    <th>{{ key }}</th>
                    <td>{{ value }}</td>
                </tr>
            {% endfor %}
        </table>
    {% endif %}
</body>
</html>